package com.goldsprite.gameframeworks.fsm;

public abstract class State<T extends Fsm> {
	protected T fsm;

	public void setFsm(T fsm) {
		this.fsm = fsm;
		init();
	}

	protected void init(){}

	public boolean canEnter() {
		return true;
	}
	public boolean canExit() {
		return true;
	}

	public void enter() {}

	public void exit() {}

	public void running() {}
}
